/// 打卡记录
class CheckInPrint {
  final String id;
  final String userId; // 用户ID
  final DateTime checkInDate; // 打卡日期
  final DateTime createdAt; // 创建时间

  CheckInPrint({
    required this.id,
    required this.userId,
    required this.checkInDate,
    required this.createdAt,
  });

  /// 复制并修改打卡记录
  CheckInPrint copyWith({
    String? id,
    String? userId,
    DateTime? checkInDate,
    DateTime? createdAt,
  }) {
    return CheckInPrint(
      id: id ?? this.id,
      userId: userId ?? this.userId,
      checkInDate: checkInDate ?? this.checkInDate,
      createdAt: createdAt ?? this.createdAt,
    );
  }
}
